using UnityEngine;

namespace JufGame
{
	[System.Serializable]
	public struct LOD_Config
	{
		public readonly Vector3 AudacityVector => audacityVector;
		public readonly AI_LOD LOD => lOD;
		public readonly Vector4 Cost => cost;
		private Vector4 audacityVector;
		[SerializeField, Tooltip("细节级别")] 
		private AI_LOD lOD;
		[SerializeField, Tooltip("耗费值, 用100个该细节层次的物体放在场景, 取其profiler中的相关消耗")] 
		private Vector4 cost;
		public LOD_Config(AI_LOD lOD)
		{
			this.lOD = lOD;
			cost = default;
			audacityVector = default;
		}
		public void SetAudacityVecotr(int baseAudacity)
		{
			audacityVector = baseAudacity * (int)lOD * Vector4.one;
		}
	}
}
